﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.Admin
{
    /// <summary>
    /// 振动通道--下发采集器使用
    /// </summary>
    public class VibChannelParaDto
    {
        /// <summary>
        /// 通道号
        /// </summary>
        public int ChNo { set; get; }
        /// <summary>
        /// 绑定转速通道号
        /// </summary>
        public int SpeedNo { set; get; }
        /// <summary>
        /// 传感器类型（0-加速度；1-速度；2-位移）
        /// </summary>
        public int SensType { set; get; } = 0;
        /// <summary>
        /// 控制恒流源状态（0-关闭；1-打开）
        /// </summary>
        public int CnstCurSrcState { set; get; } = 0;
        /// <summary>
        /// 灵敏度系数
        /// </summary>
        public float SensCoef { set; get; }
        /// <summary>
        /// 设备id
        /// </summary>
        public int DevId { set; get; } = 1;
        /// <summary>
        /// 振动采集参数列表
        /// </summary>
        public List<VibParaDto> VibParaList { set; get; }
        /// <summary>
        /// 报警门限参数
        /// </summary>
        public List<LimitParaDto> LimitParaList { set; get; }
        /// <summary>
        /// 是否测温
        /// </summary>
        public int IsTem { get; set; } = 0;
        /// <summary>
        /// 转差率
        /// </summary>
        public float SpeedDiffRate { get; set; } = 0f;
        /// <summary>
        /// 极对数
        /// </summary>
        public int PolePairsNum { set; get; } = 1;

        public VibChannelParaDto()
        {
            VibParaList = new List<VibParaDto>();
            LimitParaList = new List<LimitParaDto>();
        }
    }
}
